home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Programmation / Gooey1.3.1 / C Templates / InitExit.c < prev    next >
Text File  |  1994-04-24  |  4KB  |  132 lines

  1. $$Message User InitExit, u:InitExit$Prototype.name$.h
  2. $$File u:InitExit$Prototype.name$.h
  3. /*  $CopyRight$ */
  4. /*   InitExit$Prototype.name$                        Program Init and Exit routines 
  5.  
  6.     File name:  InitExit$Prototype.name$.h  
  7.     Function:  This module contains the extra program initialization
  8.      routine as well as the program exit and cleanup routine.
  9.     History: $Date$ Original by $Author$
  10.  
  11.    */
  12.  
  13. /* ======================================================= */
  14. /* ======================================================= */
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. void    OpenSplashWindow(void);            /* Open spash or personalization window */
  21. void    CloseSplashWindow(void);        /* Close spash or personalization window */
  22.  
  23. /* Program initializations */
  24. void ApplInit$Prototype.name$(void);
  25.  
  26. /* Program exit and cleanup */
  27. void ApplExit$Prototype.name$(void);
  28.  
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32.  
  33. /* ======================================================= */
  34. /* ======================================================= */
  35. $$CloseFile
  36. $$Message User InitExit, u:InitExit$Prototype.name$.c
  37. $$File u:InitExit$Prototype.name$.c
  38. /*  $CopyRight$ */
  39. /*   InitExit$Prototype.name$                    Program Init and Exit routines 
  40.  
  41.     File name:  InitExit$Prototype.name$.c  
  42.     Function:  This module contains the extra program initialization
  43.      routine as well as the program exit and cleanup routine.
  44.     History: $Date$ Original by $Author$
  45.  
  46.    */
  47.  
  48. #include "mmCommon$Prototype.name$.h"    /* Common */
  49. #include "Common$Prototype.name$.h"        /* Common */
  50.  
  51. #include "InitExit$Prototype.name$.h"    /* This file */
  52.  
  53. #pragma segment MainHooks
  54.  
  55. /* ======================================================= */
  56. /* ======================================================= */
  57.  
  58. /* Routine: AE_OpenedApplication */
  59. /* Purpose: Called one time, when this program is opened. */
  60.  
  61. OSErr AE_OpenedApplication(AppleEvent *message,AppleEvent *reply,long refcon)
  62. {
  63.  
  64. return(noErr);
  65. }
  66.  
  67. /* ======================================================= */
  68.  
  69. /* Routine: AE_QuittingApplication */
  70. /* Purpose: Called one time, when this program is quit. */
  71.  
  72. OSErr AE_QuittingApplication(AppleEvent *message,AppleEvent *reply,long refcon)
  73. {
  74.  
  75. return(noErr);
  76. }
  77.  
  78. /* ======================================================= */
  79.  
  80. /* Routine: OpenSplashWindow */
  81. /* Purpose: Open spash or personalization window */
  82.  
  83. void OpenSplashWindow(void)
  84. {
  85.  
  86. }
  87.  
  88. /* ======================================================= */
  89.  
  90. /* Routine: CloseSplashWindow */
  91. /* Purpose: Close spash or personalization window */
  92.  
  93. void CloseSplashWindow(void)
  94. {
  95.  
  96. }
  97.  
  98. /* ======================================================= */
  99.  
  100. /* Routine: ApplInit$Prototype.name$ */
  101. /* Purpose: Extra program initialization */
  102.  
  103. /*      WNE: boolean, This variable set to TRUE says the WaitNextEvent trap is available,  */
  104. /*          If we want to use that trap then we do nothing to this variable.  If we do not  */
  105. /*          want to use that trap, and use GetNextEvent instead, then we change this */
  106. /*          variable to FALSE. */
  107. /*      SleepValue:integer, This is only valid if WNE is true.  This is the default sleep */
  108. /*          value to use with WaitNextEvent, it is set to 40.  This can be changed to any */
  109. /*          value desired at any time. */
  110.  
  111. void ApplInit$Prototype.name$(void)                                /* Initialization */
  112. {
  113.  
  114. }
  115.  
  116. /* ======================================================= */
  117.  
  118. /* Routine: ApplExit$Prototype.name$ */
  119. /* Purpose: Extra program cleanup upon exit from our program */
  120. /* This is where left over buffers are released and any open files are closed */
  121.  
  122. void ApplExit$Prototype.name$(void)                                /* Exit and cleanup */
  123. {
  124.  
  125. }
  126.  
  127. /* ======================================================= */
  128. /* ======================================================= */
  129. $$CloseFile
  130.  
  131.  
  132.